package org.hugoduncan.appam.config.impl;

import java.io.IOException;

import org.apache.abdera.model.Service;
import org.hugoduncan.appam.config.ServiceConfigurationProvider;

/** provides a service from the given resource path */
public class ServiceFromResource
    implements ServiceConfigurationProvider
{
    private String path;

    public void setPath(String path) {
        this.path = path;
    }

    public Service getService() throws IOException {
        return AtomResourceLoader.loadElement(path, Service.class);
    }
}
